package android.gpsmessenger;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

public class WarningDialog 
{
	private static Activity _activity;
	private static AlertDialog.Builder alertDialogBuilder;

	public static void showDialog(Activity activity)
	{

			_activity = activity;
			alertDialogBuilder = new AlertDialog.Builder(_activity);
		
			alertDialogBuilder.setTitle("Error!");
			alertDialogBuilder.setMessage("You have missing or incorrect values in some form fieds!");
			alertDialogBuilder.setCancelable(false);
			
			alertDialogBuilder.setPositiveButton("OK", new DialogInterface.OnClickListener() 
			{
					public void onClick(DialogInterface dialog,int id) 
					{
						dialog.cancel();
					}
			});
 
			AlertDialog alertDialog = alertDialogBuilder.create();
			alertDialog.show();
	}
}
